package com.bsoft.gol.hbs.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import hcn.base.UserFileMetaRecord;

import java.util.List;

public abstract class UserFileMetaRecordDAO extends HibernateSupportDelegateDAO<UserFileMetaRecord> {
    public UserFileMetaRecordDAO() {
        this.setKeyField("fileId");
    }

    @DAOMethod(sql = "from UserFileMetaRecord where fileId in:fileIdList")
    public abstract List<UserFileMetaRecord> queryByFileId(@DAOParam("fileIdList") List<String> fileIdList);


}